package com.whfc.emp.service.impl;

import com.whfc.emp.dao.ClassMeetingSignMapper;
import com.whfc.emp.entity.ClassMeetingSign;
import com.whfc.emp.service.ClassMeetingService;
import com.whfc.emp.service.ClassMeetingSignService;
import org.apache.dubbo.config.annotation.DubboService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;
import java.util.Map;

@DubboService(interfaceClass = ClassMeetingSignService.class, version = "1.0.0",timeout = 30000)
public class ClassMeetingSignServiceImpl implements ClassMeetingSignService {

    @Autowired
    private ClassMeetingSignMapper classMeetingSignMapper;

    @Override
    public ClassMeetingSign selectByPrimaryKey(Integer id) {
        return classMeetingSignMapper.selectByPrimaryKey(id);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return classMeetingSignMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ClassMeetingSign record) {
        return classMeetingSignMapper.insert(record);
    }

    @Override
    public int insertSelective(ClassMeetingSign record) {
        return classMeetingSignMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(ClassMeetingSign record) {
        return classMeetingSignMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ClassMeetingSign record) {
        return classMeetingSignMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ClassMeetingSign> selectByMeetingId(Long meetingId) {
        return classMeetingSignMapper.selectByMeetingId(meetingId);
    }

    @Override
    public List<ClassMeetingSign> selectByUserId(Long userId) {
        return classMeetingSignMapper.selectByUserId(userId);
    }

    @Override
    public int updateSignStatus(ClassMeetingSign record) {
        return classMeetingSignMapper.updateSignStatus(record);
    }

    @Override
    public Map<String, Object> selectSignCount(Integer meetingId) {
        return classMeetingSignMapper.selectSignCount(meetingId);
    }

    @Override
    public ClassMeetingSign selectByPrimaryIdAndUserId(Integer id, Integer userId) {
        return classMeetingSignMapper.selectByPrimaryIdAndUserId(id,userId);
    }

    @Override
    public List<ClassMeetingSign> selectSignByMeetingId(Integer meetingId) {
        return classMeetingSignMapper.selectSignByMeetingId(meetingId);
    }

    @Override
    public List<ClassMeetingSign> selectByEmpId(Long empId) {
        return classMeetingSignMapper.selectByEmpId(empId);
    }

    @Override
    public List<ClassMeetingSign> selectByCreatorId(Long creatorId) {
        return classMeetingSignMapper.selectByCreatorId(creatorId);
    }

    @Override
    public ClassMeetingSign selectByEmpIdAndMeetingId(Long empId, Long meetingId) {
        return classMeetingSignMapper.selectByEmpIdAndMeetingId(empId, meetingId);
    }
}